<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Jenson\BaseAdmin\Libraries\Helper as BaseAdminHelper;
use Jenson\Core\Libraries\Helper as CoreHelper;

class HomeController extends Controller
{
    /**
     * @param Request $request
     * @return \Illuminate\Http\RedirectResponse
     *
     * 后台入口
     */
    public function admins(Request $request){
        return BaseAdminHelper::isLogin($request);
    }

    public function homePage(){
        CoreHelper::LoadConfig();
//        return 'admin.homepage';
        return redirect(route('admin.index'));
    }
}
